package edu.msg.jthr.backend.service;

import java.util.List;

import javax.ejb.Local;

import edu.msg.jthr.backend.exception.ServiceException;
import edu.msg.jthr.backend.model.AbstractModel;

@Local
public interface BaseService<T extends AbstractModel, I> {
	
	public List<T> getAll() throws ServiceException;
	
	public T getById(I id) throws ServiceException;

	public void create(T obj) throws ServiceException;

	public void delete(T obj) throws ServiceException;

	public T update(T obj) throws ServiceException;
	
	
}
